home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 23 / 023.d81 / t.hints & tips < prev    next >
Text File  |  2022-08-26  |  895b  |  64 lines

  1.  
  2.  
  3.          HINTS & TIPS
  4.  
  5.  
  6. PROGRAMMING TIP: VTAB Commands for
  7. the COMMODORE 64.
  8.  
  9.  
  10.   Most other computers allow for a
  11.  
  12. VTAB command which the C64's BASIC
  13.  
  14. doesn't support.  However,the
  15.  
  16. following programming tip allows you
  17.  
  18. to accomplish the same thing.
  19.  
  20.  
  21.   Just include the following somewhere
  22.  
  23. in the beginning of your program and
  24.  
  25. you can dispense with the many cursor
  26.  
  27. control codes:
  28.  
  29. 10 DIM VTAB$(24)
  30. 20 VTAB$(0)="(HOME)"
  31. 30 FOR Y=1 TO 24
  32. 40 VTAB$(Y)=VTAB$(Y-1)+"(CSR DWN)"
  33. 50 NEXTY
  34.  
  35. For horizontal tabs, use the TAB(x)
  36.  
  37. or POS(x) command with the VTAB$(y).
  38.  
  39.  
  40. EXAMPLE: To place an object/phrase at
  41.  
  42. screen location 10,20 (10 down/20
  43.  
  44. across), use:
  45.  
  46. PRINTVTAB$(10)TAB(20)"phrase"
  47.  
  48.  
  49.   To place an item on screen line 25,
  50.  
  51. the above must end with a semi-colon,
  52.  
  53. otherwise the entire screen will
  54.  
  55. scroll up one line.
  56.  
  57. EXAMPLE:
  58.  
  59. PRINTVTAB$(24)"phrase";
  60.  
  61. ---------< end of article >---------- 
  62.  
  63.  
  64.